package cn.iocoder.yudao.module.digital.service.cardchannel.model.common;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.Duration;
import java.util.ArrayList;
import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Builder
public class CdkGenCardResult {
    private String channelCardOrderId;
    private String channelInnerOrderId;

    private CdkOrderStatusEnum orderStatus;
    private String errorMsg;
    private List<CdkCardSecret> cards = new ArrayList<>();

    private Duration createDuration;

    public CdkGenCardResult(CdkOrderStatusEnum orderStatus, String errorMsg) {
        this.orderStatus = orderStatus;
        this.errorMsg = errorMsg;
    }

}
